import request from '@/utils/request'

// 查询应用token刷新列表
export function listToken(query) {
  return request({
    url: '/asset/token/list',
    method: 'get',
    params: query
  })
}

// 查询应用token刷新详细
export function getToken(appKey) {
  return request({
    url: '/asset/token/' + appKey,
    method: 'get'
  })
}

// 新增应用token刷新
export function addToken(data) {
  return request({
    url: '/asset/token',
    method: 'post',
    data: data
  })
}

// 修改应用token刷新
export function updateToken(data) {
  return request({
    url: '/asset/token',
    method: 'put',
    data: data
  })
}

// 删除应用token刷新
export function delToken(appKey) {
  return request({
    url: '/asset/token/' + appKey,
    method: 'delete'
  })
}
